﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Team6_Algorithms.HighEnd;
using System.Drawing;

namespace VisionApplication
{
    class KmeanAlgorithm : VisionAlgorithm
    {
        private static object[,] Points;

        public KmeanAlgorithm(String name, string[] required) : base(name, required) { }

        public override System.Drawing.Bitmap DoAlgorithm(System.Drawing.Bitmap sourceImage, Object obj)
        {
            Bitmap returnImage = new Bitmap(sourceImage);

           // Points = HsvFilter.startBinaryImage(returnImage);

            Points = Kmeans.start(Points);

           // HsvFilter.objectsToImage(returnImage, Points);
            
            this.Image = returnImage;
            return returnImage;

        }
    }
}